<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件处理-监听事件</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app">
    <button v-on:click="count++">add+1</button>
    一共点击{{count}}次按钮
</div>


<script>
    var app= new Vue({
        el:'#app',
        data:{
            count:0,
        },
        methods:{

        }
    })
</script>
</body>
</html>
